#region License
// Loading.xaml.cs
// 
// Copyright (c) 2012 Xoqal.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
// http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#endregion

namespace Shammateh.Win.UI.Controls
{
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Media;

    /// <summary>
    /// Interaction logic for Loading.xaml
    /// </summary>
    public partial class Loading
    {
        public static readonly DependencyProperty ForeBrushProperty =
            DependencyProperty.Register(
                "ForeBrush",
                typeof(Brush),
                typeof(Loading),
                new UIPropertyMetadata(new SolidColorBrush(Color.FromRgb(0xCE, 0x2A, 0x2A))));

        public static readonly DependencyProperty BackBrushProperty =
            DependencyProperty.Register(
                "BackBrush",
                typeof(Brush),
                typeof(Loading),
                new UIPropertyMetadata(new SolidColorBrush(Color.FromRgb(0x79, 0x10, 0x10))));

        public static readonly DependencyProperty TextProperty =
            DependencyProperty.Register(
                "Text",
                typeof(string),
                typeof(Loading),
                new UIPropertyMetadata("لطفاً کمی صبر کنید..."));

        /// <summary>
        /// Initializes a new instance of the <see cref="Loading"/> class.
        /// </summary>
        public Loading()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the fore brush.
        /// </summary>
        /// <value>
        /// The fore brush.
        /// </value>
        public Brush ForeBrush
        {
            get { return (Brush)GetValue(ForeBrushProperty); }
            set { this.SetValue(ForeBrushProperty, value); }
        }

        /// <summary>
        /// Gets or sets the back brush.
        /// </summary>
        /// <value>
        /// The back brush.
        /// </value>
        public Brush BackBrush
        {
            get { return (Brush)GetValue(BackBrushProperty); }
            set { this.SetValue(BackBrushProperty, value); }
        }

        /// <summary>
        /// Gets or sets the text.
        /// </summary>
        /// <value>
        /// The text.
        /// </value>
        public string Text
        {
            get { return (string)GetValue(TextProperty); }
            set { this.SetValue(TextProperty, value); }
        }
    }
}
